﻿namespace GoodAdmin.Core;

/// <summary>
/// 公共常量
/// </summary>
public class CommonConst
{
    /// <summary>
    /// 系统内置数据标识
    /// </summary>
    public const string SYSTEM = "SYSTEM";

    #region 系统状态
    /// <summary>
    /// 有效
    /// </summary>
    public const string STATUS_ENABLE = "enable";
    /// <summary>
    /// 失效
    /// </summary>
    public const string STATUS_DISABLE = "disable";
    #endregion

    #region 操作
    /// <summary>
    /// 插入
    /// </summary>
    public const string ACTION_INSERT = "INSERT";
    /// <summary>
    /// 更新
    /// </summary>
    public const string ACTION_UPDATE = "UPDATE";
    /// <summary>
    /// 查询
    /// </summary>
    public const string ACTION_SELECT = "SELECT";
    /// <summary>
    /// 删除
    /// </summary>
    public const string ACTION_DELETE = "DELETE";
    #endregion

    #region 登录密码输错次数达上线后执行策略
    /// <summary>
    /// 锁定用户
    /// </summary>
    public const string LOCK_USER = "LOCK_USER";
    /// <summary>
    /// 延迟登录
    /// </summary>
    public const string LOGIN_DELAY = "LOGIN_DELAY";
    #endregion

    #region 菜单类型
    /// <summary>
    /// 目录
    /// </summary>
    public const string MENUTYPE_DIRCTORY = "dirctory";
    /// <summary>
    /// 菜单
    /// </summary>
    public const string MENUTYPE_MENU = "menu";
    /// <summary>
    /// 按钮
    /// </summary>
    public const string MENUTYPE_BUTTON = "button";
    /// <summary>
    /// 资源
    /// </summary>
    public const string MENUTYPE_RESOURCE = "resource";
    #endregion

    #region 组织分类
    //公司
    public const string ORG_COMPANY = "company";
    //部门
    public const string ORG_DEPARTMENT = "department";
    #endregion

    public const string USER= "user";
    #region 文件存储类型
    /// <summary>
    /// 存储到本地服务器
    /// </summary>
    public const string File_LOCAL = "local";
    /// <summary>
    /// Minio
    /// </summary>
    public const string File_Minio = "Minio";
    /// <summary>
    /// Aliyun
    /// </summary>
    public const string File_Aliyun = "Aliyun";
    #endregion
}